<div class="breadcrum">
    <p>
        <a href="{$config->site_url('laporan/barang')}">Reporting</a>
        <span></span>
        <small>Barang</small>
    </p>
    <div class="clear"></div>
</div>

<div class="dashboard-container">
    <table width="100%" class="table-dashboard">
        <tbody>
            <tr>
                <!-- <th width="5%">No</th> -->
                <th width="20%">Nama Group</th>
                <th width="10%">Jumlah Asset</th>
                <th width="20%">Nilai Awal</th>
                <th width="20%">Total Penyusutan</th>
                <th width="30%">Nilai Buku</th>
            </tr>

            {foreach from=$rs_id key=no item=result}   

            <tr>   
                <td class="group">
                    <a href="{$config->site_url('laporan/barang/barang_per_kategori/')}/{$result.gpbarang_cd}">
                        <span class="blue">{$result.gpbarang_name}</span>
                    </a>
                </td>
                <td align="right">
                    <span class="count">{$result.total_barang|default:'0'}</span>
                    <span class="label">Barang</span>
                </td>
                <td align="right">
                    <span class="count">{$result.total_harga_beli|default:'0'|number_format:2:",":"."}</span>
                    <span class="label">Rupiah</span>
                </td>
                <td align="right">
                    <span class="count">{{$result.total_harga_beli - $result.total_nilai_buku}|default:'0'|number_format:2:",":"."}</span>
                    <span class="label">Rupiah</span>
                </td>
                <td align="right">
                    <span class="count">{$result.total_nilai_buku|default:'0'|number_format:2:",":"."}</span>
                    <span class="label">Rupiah</span>
                </td>
            </tr>
            {foreachelse}
            <tr>
                <td colspan="3">Data masih kosong</td>
            </tr>
            {/foreach}
        </tbody>
    </table>
</div>